<?php

class persistanceSociete extends Societe {
	
	function __construct(){
		parent::__construct();
	}
	
	
	public static function getAll(){
		$sql = "SELECT *
				FROM Societe";
		
		$req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
		
		$tab = array();
		$i = 0;
		
		while($row=mysql_fetch_array($req)){
			$tab[$i]= $row;
			$i++;
		}
		
		return  $tab ;
	}
	
} 


?>